import type { AxiosRequestConfig } from 'axios'
import type { ApiResult } from '@/types/app'
import type { RequestOptions } from '@/utils/http'
import type { GetAssetInteraction, ExportAssetInteractionParams } from './type'
import { http } from '@/utils/http'
export const assetInteractionRecordsApi = {
  /** 获取接口列表 */
  GetAssetInteractionRecordsList(config?: AxiosRequestConfig<GetAssetInteraction>, options?: RequestOptions) {
    return http.post<ApiResult<any>>({ url: '/risk/api/v1/flow/preciseSearch', ...config }, options)
  },

  /** 按勾选结果导出、按查询列表导出 */
  exportAssetInteractionRecordsList(config?: AxiosRequestConfig<ExportAssetInteractionParams>, options?: RequestOptions) {
    return http.post<ApiResult<any>>({ url: '/risk/api/v1/assetdetail/export', responseType: 'blob', ...config }, options)
  }
}
